const { sequelize } = require('./config/database');

async function checkTableStructure() {
  try {
    const [results] = await sequelize.query('DESCRIBE parkpart_activities');
    console.log('Current table structure:');
    results.forEach(field => {
      console.log(`- ${field.Field}: ${field.Type} ${field.Null === 'NO' ? 'NOT NULL' : 'NULL'} ${field.Default ? `DEFAULT ${field.Default}` : ''}`);
    });
    process.exit(0);
  } catch (error) {
    console.error('Error:', error);
    process.exit(1);
  }
}

checkTableStructure();